#Script to install the asian smilies plugin. Matt McCorry 04.Mar.2009

make asiansmilies.so
if test $? -ne 0
then
	echo "Error in compilation"
	exit 1
else
	if test -d ~/.purple/plugins/
	then
		echo "Folder already exists"
	else
		echo "Making directory"
		mkdir ~/.purple/plugins/
	fi

	echo "Copying asiansmilies.so file to plugins folder"
	cp ./asiansmilies.so ~/.purple/plugins/
	if test $? -ne 0
	then
		echo "Error copying the file"
	else
		echo "Running pidgin in debug, multiple, no-login mode"
		pidgin -d -m --login=mccorry@gmail.com
		exit 0
	fi
fi


